
function post(date, name, mobile, time, description) {

    nav.initializeTask(0, 2, "正在报名......")
   nav.openTask("报名")

    http.post("/attend.json",{}, {
                       name: name,
                       date: date, mobile: mobile, time: time, description: description,
                       member: {id:usinfo.id, display: usinfo.name}
                   },
                   function(json) {
                        nav.value = nav.maximumValue
                       if (json.error) {
                           dialog.message(json.error.description)
                       }
                       else {
                           dialog.toast("报名成功")
                           xmlModel.reload()
                       }
                   }

                   )

    nav.value = 1
}
